package top.lyunz.lucky.hr.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.lyunz.lucky.hr.bean.Mhselect;
import top.lyunz.lucky.hr.bean.SalaryStandard;
import top.lyunz.lucky.hr.bean.SalaryStandardExample;
import top.lyunz.lucky.hr.mapper.SalaryStandardMapper;
import top.lyunz.lucky.hr.service.Salary_standardService;

@Service
public class Salary_standardServiceimpl implements Salary_standardService{
	
	@Autowired
	public SalaryStandardMapper salaryStandardMapper;

	@Override
	public boolean add(SalaryStandard ssd) {
		return salaryStandardMapper.insert(ssd)>0;
	}
	
	@Override
	public List<SalaryStandard> getall() {
		return salaryStandardMapper.selectByExample(new SalaryStandardExample());
	}

	@Override
	public SalaryStandard GetByid(int ssdId) {
		return salaryStandardMapper.selectByPrimaryKey(ssdId);
	}

	@Override
	public boolean upd(SalaryStandard ss) {
		return salaryStandardMapper.updateByPrimaryKey(ss)>0;
	}

	@Override
	public List<SalaryStandard> Mhsel(Mhselect ms) {
		return salaryStandardMapper.mhSel(ms);
	}

	@Override
	public List<SalaryStandard> Mhsels(Mhselect sa) {
		return salaryStandardMapper.mhSels(sa);
	}

}
